Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix go_repository configuration #559

Merged
merged 1 commit into from
Jun 23, 2019

Conversation

jayconrod
Copy link
Contributor

  • Updated to rules_go at master to get compatibility fixes, new features for
    minimal module compatibility, and go_bazel_test.
  • Rewrote //internal:repository_rules_test to //internal:go_repository_test.
    The old test was broken by incompatible changes in new versions of Bazel.
    The new test uses a new integration testing framework. We should be able
    to improve go_repository test coverage in the future.
  • Added //internal/language/test_filegroup, an extension that generates
    all_files filegroup targets in each package. This is needed for
    go_bazel_test, since it explicitly depends files in repositories under test.
  • Generated filegroups with the new extension.

* go_repository now supports a build_config attribute. By default,
  this points to "@//:WORKSPACE", but it may reference another file
  that changes less frequently or None. This is used to set the
  -repo_config option when invoking Gazelle.
* A global default may be set via "go_repository_default_config" in
  gazelle_dependencies.
* go_repository now reads files with "cat" instead of ctx.read.

Fixes bazel-contrib#555
@jayconrod jayconrod merged commit 72ba271 into bazel-contrib:master Jun 23, 2019
@jayconrod jayconrod deleted the fix-read-workspace branch June 23, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant